package com.pandora.credit.service;

import com.pandora.credit.dto.response.SwitchResponse;
import com.pandora.credit.entity.Version;

import java.util.List;

/**
 * @author developer
 */
public interface VersionService {

    /**
     * getStatusByType
     * @param platform platform
     * @param version version
     * @param valid valid
     * @return Integer
     */
    Integer getStatusByType(String platform, String version, int valid);

    /**
     * queryList
     * @param platform platform
     * @param version version
     * @param valid valid
     * @return VersionList
     */
    List<Version> queryList(String platform, String version, int valid);

    /**
     * save
     * @param version version
     */
    void save(Version version);

    /**
     * update
     * @param version version
     */
    void update(Version version);

    /**
     * requestSwitch
     * @param ua ua
     * @return SwitchResponse
     */
    SwitchResponse requestSwitch(String ua);

}
